<template>
    <div>
        <div class="header">
            <div class="header-left">
                <img class="header-left-a" src="../../assets/icon/icon2.png"/>
                <img class="header-left-b" src="../../assets/vue.png"/>
            </div>
            <div class="header-right">
                <img class="header-right-a" src="../../assets/icon/logo.png"/>
                <img class="header-right-b" src="../../assets/icon/icon5.png"/>
            </div>
        </div>
        <div class="main">
            <el-timeline>
                <el-timeline-item class="item-time" v-for="item in pubList" :key="item.id" :timestamp="item.pubTimestamp" placement="top">
                    <el-card>
                        <h4>{{ item.pubAbs }}</h4>
                        <p>{{ item.pubUser }}</p>
                    </el-card>
                </el-timeline-item>
            </el-timeline>
        </div>
        <div class="footer">
            <div class="footer-a">Talk is nothing, show you my code.</div>
            <div>
                <img class="footer-img" src="../../assets/icon/icon6.png"/>
            </div>
            <div class="footer-b">@ 版权所有：Evan-Nightly  技术支持：Evan & MMK</div>
        </div>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                pubList: [
                    {
                        id: 1,
                        pubAbs: '更新 Github 模板',
                        pubUser: '王小虎 提交于 2018/4/12 20:46',
                        pubTimestamp: '2018/4/12'
                    },
                    {
                        id: 2,
                        pubAbs: '更新 Github 模板',
                        pubUser: '王小虎 提交于 2018/4/12 20:46',
                        pubTimestamp: '2018/4/12'
                    },
                    {
                        id: 3,
                        pubAbs: '更新 Github 模板',
                        pubUser: '王小虎 提交于 2018/4/12 20:46',
                        pubTimestamp: '2018/4/12'
                    },{
                        id: 4,
                        pubAbs: '更新 Github 模板',
                        pubUser: '王小虎 提交于 2018/4/12 20:46',
                        pubTimestamp: '2018/4/12'
                    },
                    {
                        id: 5,
                        pubAbs: '更新 Github 模板',
                        pubUser: '王小虎 提交于 2018/4/12 20:46',
                        pubTimestamp: '2018/4/12'
                    }
                ]
            }
        }
    }
</script>

<style>
    .header {
        display: flex;
        background: #fff;
    }
    .main {
        margin: 10px 0;
        background: #fff;
        padding: 20px 0;
    }
    .footer {
        background: black;
        padding: 10px 0;
    }
    .header-left {
        width: 70%;
        padding: 10px 10px;
    }
    .header-left-a {
        width: 160px;
        height: 160px;
        margin-left: 230px;
    }
    .header-left-b {
        width: 680px;
        height: 400px;
        margin-top: -80px;
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    }
    .header-right-a {
        width: 260px;
        height: 260px;
        margin-top: -40px;
        position: absolute;
    }
    .header-right-b {
        width: 240px;
        height: 240px;
        margin-left: 30px;
        margin-top: 200px;
    }
    .footer-a {
        color: white;
        font-size: 40px;
    }
    .footer-b {
        color: #6B737A;
    }
    .footer-img {
        width: 80px;
        height: 80px;
    }
    .item-time {
        text-align: left;
    }
</style>
